package com.thinkgem.jeesite.modules.front.utils;

import java.util.List;

import com.thinkgem.jeesite.common.utils.SpringContextHolder;
import com.thinkgem.jeesite.modules.front.entity.Report;
import com.thinkgem.jeesite.modules.front.service.ReportService;

public class ReportUtils {
	
	private static ReportService reportService = SpringContextHolder.getBean(ReportService.class);
	/**
	 * 根据类型查找测试结果
	 * @param type
	 * @param category
	 * @return
	 */
	public static Object getReportByType(String type,String category){
		Report report = new Report();
		report.setExamType(type);
		report.setResultCategory(category);
		List<Report> list = reportService.findList(report);
		return list.get(0);
	}

}
